package dao;

/**
 * Mapper的基类
 *
 * @author hellhu
 */
public interface BaseMapper<MODEL, ID> {

    int deleteByPrimaryKey(ID id);

    int insert(MODEL record);

    int insertSelective(MODEL record);

    MODEL selectByPrimaryKey(ID id);

    int updateByPrimaryKeySelective(MODEL record);

    int updateByPrimaryKey(MODEL record);
}
